import ccxt

funding_rate_threshold = 0.001  # 资金费率阈值
price_threshold = 0.1  # 交易对价格阈值
time_interval = '4h'  # 程序运行的时间间隔

# ===交易所配置===
# 如果使用代理 注意替换IP和Port
proxy = {
    "http": 'http://127.0.0.1:7890',
    "https": 'https://127.0.0.1:7890',
}
# 交易所配置
exchange = ccxt.binance({
    # mpharaoh666888账户
    'apiKey': "IWutqYrDM6PNgMDyaJMzq1SvEeZONxJkVIKe59rmEdafZ327GMXUmQDMC9zxO8G9",
    'secret': "NmzBMlndNRyJfsXj8YjnXeuDYDqk1WYZUkDK38U3FOzYih8ZZnTmC5LzsX724Pq5",
    'timeout': 30000,
    'rateLimit': 10,
    'enableRateLimit': False,
    'options': {
        'adjustForTimeDifference': True,
        'recvWindow': 10000,
    },
    # 'proxies': proxy
})

# ===钉钉配置===
# 数据监控群
webhook = 'ef523733b7ed590cec1e5f7f5ff11070becb58b58c3ba7f59e4cc17a0c362e3d'  # 钉钉机器人的webhook
secret = 'SEC6a7e6622bfc6b76de3c63254eb962909fc4a5fd61524c11456af4c252f4611a0'  # 钉钉机器人的密钥
